# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=facebrute
pkgver=7.ece355b
pkgrel=5
groups=('blackarch' 'blackarch-cracker' 'blackarch-webapp')
pkgdesc='This script tries to guess passwords for a given facebook account using a list of passwords (dictionary).'
arch=('any')
url='https://github.com/emerinohdz/FaceBrute'
license=('Artistic')
depends=('python2' 'python2-httplib2')
makedepends=('git')
source=("$pkgname::git+https://github.com/emerinohdz/FaceBrute.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

